package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/8/29 9:51
 * @desrcption: 评论列表对象
 */
@Getter
@Setter
@ToString
public class CommentListDTO extends BaseDTO {

    private static final long serialVersionUID = 8263168205993593889L;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.commentList.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.commentList.refId.NotNull}")
    private Long refId;

    @NotNull(message = "{dto.msg.commentList.businessType.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer businessType;

    private Integer del;
    /**
     * 标记 1：saas；2：paas
     */
    private Integer saasMark;

    /**
     * 是否是评论评论评论
     */
    private Boolean childComments = false;

    public CommentListDTO() {
        del = 0;
    }
}
